<!DOCTYPE html>
<html>
<head>
    <include file="Include:meta"/>
    <title>项目-目的地运营集团数据管理平台</title>
    <include file="Include:style"/>
    <link rel="stylesheet" href="__PUBLIC__/mobile/css/dropload.css">
</head>
<body style="background: #f3f3f3;">
<div class="header" style="line-height:0">
    <a href="__APP__/Mobile/Index/index" class="back_btn"></a>
    <a
    <if condition="$my_project eq null">class="project_menu project_menu_l active"
        <else/>
        class="project_menu project_menu_l"
    </if>
    href="__APP__/Mobile/CrmProjects/index/">所有项目</a><a
    <if condition="$my_project eq 1">class="project_menu project_menu_r active"
        <else/>
        class="project_menu project_menu_r"
    </if>
    href="__APP__/Mobile/CrmProjects/index/my_project/1">我的项目</a>
    <a href="javascript:;" class="header_txt_btn project_search"></a>
</div>
<div class="content">
    <div class="project_list">
        <ul>
            <foreach name="result" item="vo">
                <li>
                    <a href="__APP__/Mobile/CrmProjects/detail/project_id/{$vo['project_id']}">
                        <div class="time">{$vo['project_num']}<span>|</span>{$vo['start_date']}</div>
                        <div class="name">{$vo['project_name']}</div>
                        <div class="user"><span>项目负责人：{:get_userName($vo['leader'])}</span>项目群负责人：{:get_userName($vo['group_leader'])}
                        </div>
                    </a>
                </li>
            </foreach>
        </ul>
    </div>
</div>
<!-- 弹框 -->
<div class="search_fix">
    <div class="search_header">
        <a class="back_btn" href="javascript:;"></a>
        <input class="project_search_inp" type="text" value="{$keyword}" placeholder="输入搜索内容…">
        <a href="javascript:;" class="header_txt_btn jd_up">搜索</a>
    </div>
</div>
<include file="Include:javascript"/>
<script src="__PUBLIC__/mobile/js/dropload.min.js"></script>
<script>
    $(".project_menu,.search_btn_box a,.search_list_box a,.back_btn").click(function () {
        sessionStorage.clear();
    });
    //搜索
    $('.project_search').click(function () {
        $('.search_fix').fadeIn();
        $('html').addClass('active');
    })
    $('.back_btn').click(function () {
        $('.search_fix').fadeOut();
        $('html').removeClass('active');
    })
    $('.jd_up').click(function () {
        sessionStorage.clear();
        var val = $('.project_search_inp').val();
        location.href = "__APP__/Mobile/CrmProjects/index/keyword/" + val;
    })
</script>
</body>
</html>